package com.ls.rbac.entity.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serial;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@Schema(name = "PermissionVo", description = " 权限视图对象")
public class PermissionVo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 权限id
     */
    @Schema(description = "权限id")
    private Integer id;

    /**
     * 权限标识
     */
    @Schema(description = "权限标识")
    private String permissionLabel;

    /**
     * 上级权限id
     */
    @Schema(description = "上级权限id")
    private Integer pid;


    /**
     * 路由地址
     */
    @Schema(description = "路由地址")
    private String routerPath;


    /**
     * 权限编码
     */
    @Schema(description = "权限编码")
    private String permissionCode;

    /**
     * 权限类型：0-根目录，1-菜单，2-按钮
     */
    @Schema(description = "权限类型：0-根目录，1-菜单，2-按钮")
    private Byte permissionType;

    /**
     * 图标
     */
    @Schema(description = "图标")
    private String icon;

    /**
     * 排序号
     */
    @Schema(description = "排序号")
    private Integer orderNum;


    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}
